<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
   <%
		System.out.println("开始接受flex注册请求.....");
    	String username= request.getParameter("username");
    	String password = request.getParameter("password");
    	if(null==username||"".equals(username)){out.println("用户名不能为空!");return;}
    	System.out.println("用户名："+username+"  密码:"+password);
    	
    	
    	Map  users = (Map)this.getServletContext().getAttribute("users");
    	if(null==users){
    		users =  new HashMap();
    		users.put(username,password);
    		this.getServletContext().setAttribute("users",users);
    		out.println("注册成功！");
    	}else{
    		if(users.containsKey(username)){
    			out.println("对不起 用户名："+username+" 已存在！");
    		}else{
    			users.put(username,password);
    			out.println("注册成功！");
    		}
    		
    	}
     
    	
    %>
